package com.zmn.oms.common.dio.pricefeedback;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.PositiveOrZero;
import java.io.Serializable;
import java.util.Date;


/**
 * 描述: 价格反馈表
 *
 * @author weilai
 * @since 2022-09-07 11:23:26
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PriceFeedbackDIO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单ID
     */
    @NotNull(message = "订单ID不能为空")
    private Long orderId;

    /**
     * 工单ID
     */
    @NotNull(message = "工单ID不能为空")
    private Long workId;

    /**
     * 描述: 期望价格 单位: 分
     **/
    @NotNull(message = "期望价格不能为空")
    @PositiveOrZero(message = "期望价格不能为负数")
    private Integer expectPrice;

    /**
     * 描述: 备注说明
     **/
    private String remark;

    /**
     * 描述: 反馈执行价 单位：分
     **/
    @NotNull(message = "反馈执行价不能为空")
    @PositiveOrZero(message = "反馈执行价不能为负数")
    private Integer feedbackPrice;

    /**
     * 项目ID
     */
    @NotNull(message = "项目ID不能为空")
    private Integer projectId;

}
